﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VehicleScale.DataAccess
{
    interface IBaseDataAccess<T>
    {
        T SearchObject { get; set; }
        IList<T> Searcher();

        T Get();
        T GetLast();
        IList<T> GetAll();
        bool Add(T item);
        bool Add(IList<T> collection);
        bool Edit(T item);
        bool Edit(IList<T> collection);
        bool Delete(T item);
        bool Delete(IList<T> collection);
    }
}
